package de.bazinga.rotw.weapon.portal;

import com.jme.renderer.ColorRGBA;
import com.jme.scene.state.MaterialState;

import de.bazinga.rotw.game.Game;


public class EntryPortal extends Portal {
	private static final long serialVersionUID = 1L;
	
	private Portal exitPortal = null;
	
	public EntryPortal() {
		super();
		//particleGeom.setStartColor(ColorRGBA.red);
		//particleGeom.setEndColor(ColorRGBA.red);
		
		MaterialState mat = Game.getGame().getDisplay().getRenderer().createMaterialState();
        mat.setAmbient(ColorRGBA.red);
        mat.setDiffuse(ColorRGBA.red);
        mat.setEmissive(ColorRGBA.red);
        
        portal.setRenderState(mat);
        portal.updateRenderState();
	}
	
	public void setExitPortal(Portal exit) {
		this.exitPortal = exit;
	}
	
	public Portal getExitPortal() {
		return exitPortal;
	}
}
